﻿@using LERP.Web.Controllers.ViewModels.OrderViewModels
@using Sharp.Framework.Extensions
@model LERP.Domain.Order

@{
    ViewBag.Title = "添加备注";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var remarks = (List<OrderRemarkViewModel>) ViewBag.Remarks;

}
<div class="empty" style="text-align: left;background-color: #FFFCEB;font-size: 14px;font-family: 宋体,Arial,Lucida,Verdana,Helvetica,sans-serif;">
    
    <strong>订单编号: @Model.Id  </strong> <strong>状态: @Model.Status.GetDescription()   </strong> 
</div>
 @if (remarks.Any())
 {
     
       <table class="table_list"  style="width: 99%;">
        <tr>
            <th style="width: 150px;">时间</th> 
            <th>备注内容</th> 
            <th style="width: 80px;  ">操作人</th>
        </tr>
        @foreach (var item in remarks)
        {
           
            <tr > 
                <td>@item.Created.ToString("yyyy-MM-dd hh:mm:ss")</td>
                <td>@item.Action</td>
                <td>@item.UserName</td>  
            </tr>
        }
         
                            
    </table>
 } 

@using (Html.BeginForm())
{
    <fieldset> 
        <legend>
         添加备注
        </legend>
       
        <ul class="list_form">
            <li>
              <label for="newremark">备注</label>
                
                <textarea class="text-long" data-val="true" data-val-length="备注不能超过255个字符" data-val-length-max="255" 
                          data-val-required="备注不能为空" id="newremark" name="newremark"  cols="1" rows="1"></textarea>
                
               
               <span class="field-validation-valid" data-valmsg-for="newremark" data-valmsg-replace="true"></span>
            </li>
       
        </ul>
         
    </fieldset>
    <input type="submit"  class="button-submit" value="保存" />
    
    <br/>

    <br/>
}
